package com.example.srm.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.srm.domain.TRole;
import com.example.srm.domain.TUser;
import com.example.srm.domain.tree.Tree;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
* @Entity com.example.srm.domain.TUser
*/
@Repository
public interface TUserMapper extends BaseMapper<TUser> {


    Set<Tree> getPermissionById(String id);

    Set<Tree> listTree(String id);

    List<TRole> getRolesByUserId(String id);

    TUser getUserByToken(String token);
}
